﻿using FreeSql.DatabaseModel;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.Main
{

    [JsonObject(MemberSerialization.OptIn), Table(Name = "t_AlarmPicture", DisableSyncStructure = true)]
    public partial class TAlarmPicture
    {

        /// <summary>
        /// 主键唯一标识Id
        /// </summary>
        [JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 关联报警Id
        /// </summary>
        [JsonProperty]
        public long? AlarmId { get; set; }

        /// <summary>
        /// 数据录入时间
        /// </summary>
        [JsonProperty]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 设备Id十进制形式
        /// </summary>
        [JsonProperty, Column(Name = "deviceId")]
        public long? DeviceId { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        [JsonProperty, Column(Name = "fileName", StringLength = -2)]
        public string FileName { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>
        [JsonProperty, Column(Name = "filePath", StringLength = -2)]
        public string FilePath { get; set; }

        /// <summary>
        /// 服务器路径
        /// </summary>
        [JsonProperty, Column(Name = "serverPath", StringLength = -2)]
        public string ServerPath { get; set; }

        /// <summary>
        /// 文件后缀名
        /// </summary>
        [JsonProperty, Column(Name = "suffix", StringLength = 50)]
        public string Suffix { get; set; }

        /// <summary>
        /// 设备唯一标识
        /// </summary>
        [JsonProperty, Column(StringLength = -2)]
        public string TerminalId { get; set; }

    }

}
